using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;

using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.Reflection;
using ILRuntime.CLR.Utils;
using System.Linq;

namespace ILRuntime.Runtime.Generated
{
    unsafe class huqiang_Communication_KcpFileMission_Binding
    {
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase method;
            FieldInfo field;
            Type[] args;
            Type type = typeof(huqiang.Communication.KcpFileMission);
            args = new Type[]{};
            method = type.GetMethod("get_CurrentPart", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_CurrentPart_0);
            args = new Type[]{};
            method = type.GetMethod("get_Compelete", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Compelete_1);
            args = new Type[]{};
            method = type.GetMethod("MoveNextPart", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, MoveNextPart_2);
            args = new Type[]{};
            method = type.GetMethod("get_State", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_State_3);
            args = new Type[]{typeof(huqiang.Communication.KcpFileMission.MissionState)};
            method = type.GetMethod("set_State", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_State_4);
            args = new Type[]{};
            method = type.GetMethod("Open", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Open_5);
            args = new Type[]{typeof(System.Int32)};
            method = type.GetMethod("WriteRecord", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, WriteRecord_6);
            args = new Type[]{typeof(System.Int64), typeof(System.Byte[]), typeof(System.Int32), typeof(System.Int32)};
            method = type.GetMethod("WriteData", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, WriteData_7);
            args = new Type[]{};
            method = type.GetMethod("ReadyDownload", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ReadyDownload_8);
            args = new Type[]{};
            method = type.GetMethod("GetRecord", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetRecord_9);
            args = new Type[]{typeof(System.Byte[])};
            method = type.GetMethod("SetRecord", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetRecord_10);
            args = new Type[]{};
            method = type.GetMethod("Dispose", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Dispose_11);
            args = new Type[]{};
            method = type.GetMethod("OpenUpload", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, OpenUpload_12);
            args = new Type[]{typeof(System.Int64), typeof(System.Byte[]), typeof(System.Int32), typeof(System.Int32)};
            method = type.GetMethod("ReadData", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ReadData_13);

            field = type.GetField("ErrorCode", flag);
            app.RegisterCLRFieldGetter(field, get_ErrorCode_0);
            app.RegisterCLRFieldSetter(field, set_ErrorCode_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_ErrorCode_0, AssignFromStack_ErrorCode_0);
            field = type.GetField("url", flag);
            app.RegisterCLRFieldGetter(field, get_url_1);
            app.RegisterCLRFieldSetter(field, set_url_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_url_1, AssignFromStack_url_1);
            field = type.GetField("realPath", flag);
            app.RegisterCLRFieldGetter(field, get_realPath_2);
            app.RegisterCLRFieldSetter(field, set_realPath_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_realPath_2, AssignFromStack_realPath_2);
            field = type.GetField("AllPart", flag);
            app.RegisterCLRFieldGetter(field, get_AllPart_3);
            app.RegisterCLRFieldSetter(field, set_AllPart_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_AllPart_3, AssignFromStack_AllPart_3);
            field = type.GetField("RecvPart", flag);
            app.RegisterCLRFieldGetter(field, get_RecvPart_4);
            app.RegisterCLRFieldSetter(field, set_RecvPart_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_RecvPart_4, AssignFromStack_RecvPart_4);
            field = type.GetField("FileID", flag);
            app.RegisterCLRFieldGetter(field, get_FileID_5);
            app.RegisterCLRFieldSetter(field, set_FileID_5);
            app.RegisterCLRFieldBinding(field, CopyToStack_FileID_5, AssignFromStack_FileID_5);
            field = type.GetField("Length", flag);
            app.RegisterCLRFieldGetter(field, get_Length_6);
            app.RegisterCLRFieldSetter(field, set_Length_6);
            app.RegisterCLRFieldBinding(field, CopyToStack_Length_6, AssignFromStack_Length_6);
            field = type.GetField("TransferCount", flag);
            app.RegisterCLRFieldGetter(field, get_TransferCount_7);
            app.RegisterCLRFieldSetter(field, set_TransferCount_7);
            app.RegisterCLRFieldBinding(field, CopyToStack_TransferCount_7, AssignFromStack_TransferCount_7);
            field = type.GetField("LastRecvTime", flag);
            app.RegisterCLRFieldGetter(field, get_LastRecvTime_8);
            app.RegisterCLRFieldSetter(field, set_LastRecvTime_8);
            app.RegisterCLRFieldBinding(field, CopyToStack_LastRecvTime_8, AssignFromStack_LastRecvTime_8);
            field = type.GetField("LastChangeTime", flag);
            app.RegisterCLRFieldGetter(field, get_LastChangeTime_9);
            app.RegisterCLRFieldSetter(field, set_LastChangeTime_9);
            app.RegisterCLRFieldBinding(field, CopyToStack_LastChangeTime_9, AssignFromStack_LastChangeTime_9);
            field = type.GetField("msg", flag);
            app.RegisterCLRFieldGetter(field, get_msg_10);
            app.RegisterCLRFieldSetter(field, set_msg_10);
            app.RegisterCLRFieldBinding(field, CopyToStack_msg_10, AssignFromStack_msg_10);
            field = type.GetField("method", flag);
            app.RegisterCLRFieldGetter(field, get_method_11);
            app.RegisterCLRFieldSetter(field, set_method_11);
            app.RegisterCLRFieldBinding(field, CopyToStack_method_11, AssignFromStack_method_11);
            field = type.GetField("shareFile", flag);
            app.RegisterCLRFieldGetter(field, get_shareFile_12);
            app.RegisterCLRFieldSetter(field, set_shareFile_12);
            app.RegisterCLRFieldBinding(field, CopyToStack_shareFile_12, AssignFromStack_shareFile_12);


            app.RegisterCLRCreateDefaultInstance(type, () => new huqiang.Communication.KcpFileMission());
            app.RegisterCLRCreateArrayInstance(type, s => new huqiang.Communication.KcpFileMission[s]);

            args = new Type[]{};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);

        }


        static StackObject* get_CurrentPart_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.Communication.KcpFileMission instance_of_this_method = (huqiang.Communication.KcpFileMission)typeof(huqiang.Communication.KcpFileMission).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.CurrentPart;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static StackObject* get_Compelete_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.Communication.KcpFileMission instance_of_this_method = (huqiang.Communication.KcpFileMission)typeof(huqiang.Communication.KcpFileMission).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Compelete;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static StackObject* MoveNextPart_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.Communication.KcpFileMission instance_of_this_method = (huqiang.Communication.KcpFileMission)typeof(huqiang.Communication.KcpFileMission).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.MoveNextPart();

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static StackObject* get_State_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.Communication.KcpFileMission instance_of_this_method = (huqiang.Communication.KcpFileMission)typeof(huqiang.Communication.KcpFileMission).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.State;

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* set_State_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.Communication.KcpFileMission.MissionState @value = (huqiang.Communication.KcpFileMission.MissionState)typeof(huqiang.Communication.KcpFileMission.MissionState).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)20);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.Communication.KcpFileMission instance_of_this_method = (huqiang.Communication.KcpFileMission)typeof(huqiang.Communication.KcpFileMission).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.State = value;

            return __ret;
        }

        static StackObject* Open_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.Communication.KcpFileMission instance_of_this_method = (huqiang.Communication.KcpFileMission)typeof(huqiang.Communication.KcpFileMission).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Open();

            return __ret;
        }

        static StackObject* WriteRecord_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 @part = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.Communication.KcpFileMission instance_of_this_method = (huqiang.Communication.KcpFileMission)typeof(huqiang.Communication.KcpFileMission).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.WriteRecord(@part);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static StackObject* WriteData_7(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 5);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 @len = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Int32 @offset = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            System.Byte[] @dat = (System.Byte[])typeof(System.Byte[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            System.Int64 @position = *(long*)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 5);
            huqiang.Communication.KcpFileMission instance_of_this_method = (huqiang.Communication.KcpFileMission)typeof(huqiang.Communication.KcpFileMission).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.WriteData(@position, @dat, @offset, @len);

            return __ret;
        }

        static StackObject* ReadyDownload_8(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.Communication.KcpFileMission instance_of_this_method = (huqiang.Communication.KcpFileMission)typeof(huqiang.Communication.KcpFileMission).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.ReadyDownload();

            return __ret;
        }

        static StackObject* GetRecord_9(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.Communication.KcpFileMission instance_of_this_method = (huqiang.Communication.KcpFileMission)typeof(huqiang.Communication.KcpFileMission).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.GetRecord();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* SetRecord_10(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Byte[] @dat = (System.Byte[])typeof(System.Byte[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.Communication.KcpFileMission instance_of_this_method = (huqiang.Communication.KcpFileMission)typeof(huqiang.Communication.KcpFileMission).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetRecord(@dat);

            return __ret;
        }

        static StackObject* Dispose_11(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.Communication.KcpFileMission instance_of_this_method = (huqiang.Communication.KcpFileMission)typeof(huqiang.Communication.KcpFileMission).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Dispose();

            return __ret;
        }

        static StackObject* OpenUpload_12(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.Communication.KcpFileMission instance_of_this_method = (huqiang.Communication.KcpFileMission)typeof(huqiang.Communication.KcpFileMission).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.OpenUpload();

            return __ret;
        }

        static StackObject* ReadData_13(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 5);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 @len = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Int32 @offset = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            System.Byte[] @buff = (System.Byte[])typeof(System.Byte[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            System.Int64 @position = *(long*)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 5);
            huqiang.Communication.KcpFileMission instance_of_this_method = (huqiang.Communication.KcpFileMission)typeof(huqiang.Communication.KcpFileMission).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.ReadData(@position, @buff, @offset, @len);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method;
            return __ret + 1;
        }


        static object get_ErrorCode_0(ref object o)
        {
            return ((huqiang.Communication.KcpFileMission)o).ErrorCode;
        }

        static StackObject* CopyToStack_ErrorCode_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Communication.KcpFileMission)o).ErrorCode;
            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_ErrorCode_0(ref object o, object v)
        {
            ((huqiang.Communication.KcpFileMission)o).ErrorCode = (System.Int32)v;
        }

        static StackObject* AssignFromStack_ErrorCode_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Int32 @ErrorCode = ptr_of_this_method->Value;
            ((huqiang.Communication.KcpFileMission)o).ErrorCode = @ErrorCode;
            return ptr_of_this_method;
        }

        static object get_url_1(ref object o)
        {
            return ((huqiang.Communication.KcpFileMission)o).url;
        }

        static StackObject* CopyToStack_url_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Communication.KcpFileMission)o).url;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_url_1(ref object o, object v)
        {
            ((huqiang.Communication.KcpFileMission)o).url = (System.String)v;
        }

        static StackObject* AssignFromStack_url_1(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.String @url = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.Communication.KcpFileMission)o).url = @url;
            return ptr_of_this_method;
        }

        static object get_realPath_2(ref object o)
        {
            return ((huqiang.Communication.KcpFileMission)o).realPath;
        }

        static StackObject* CopyToStack_realPath_2(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Communication.KcpFileMission)o).realPath;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_realPath_2(ref object o, object v)
        {
            ((huqiang.Communication.KcpFileMission)o).realPath = (System.String)v;
        }

        static StackObject* AssignFromStack_realPath_2(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.String @realPath = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.Communication.KcpFileMission)o).realPath = @realPath;
            return ptr_of_this_method;
        }

        static object get_AllPart_3(ref object o)
        {
            return ((huqiang.Communication.KcpFileMission)o).AllPart;
        }

        static StackObject* CopyToStack_AllPart_3(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Communication.KcpFileMission)o).AllPart;
            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_AllPart_3(ref object o, object v)
        {
            ((huqiang.Communication.KcpFileMission)o).AllPart = (System.Int32)v;
        }

        static StackObject* AssignFromStack_AllPart_3(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Int32 @AllPart = ptr_of_this_method->Value;
            ((huqiang.Communication.KcpFileMission)o).AllPart = @AllPart;
            return ptr_of_this_method;
        }

        static object get_RecvPart_4(ref object o)
        {
            return ((huqiang.Communication.KcpFileMission)o).RecvPart;
        }

        static StackObject* CopyToStack_RecvPart_4(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Communication.KcpFileMission)o).RecvPart;
            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_RecvPart_4(ref object o, object v)
        {
            ((huqiang.Communication.KcpFileMission)o).RecvPart = (System.Int32)v;
        }

        static StackObject* AssignFromStack_RecvPart_4(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Int32 @RecvPart = ptr_of_this_method->Value;
            ((huqiang.Communication.KcpFileMission)o).RecvPart = @RecvPart;
            return ptr_of_this_method;
        }

        static object get_FileID_5(ref object o)
        {
            return ((huqiang.Communication.KcpFileMission)o).FileID;
        }

        static StackObject* CopyToStack_FileID_5(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Communication.KcpFileMission)o).FileID;
            __ret->ObjectType = ObjectTypes.Long;
            *(long*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_FileID_5(ref object o, object v)
        {
            ((huqiang.Communication.KcpFileMission)o).FileID = (System.Int64)v;
        }

        static StackObject* AssignFromStack_FileID_5(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Int64 @FileID = *(long*)&ptr_of_this_method->Value;
            ((huqiang.Communication.KcpFileMission)o).FileID = @FileID;
            return ptr_of_this_method;
        }

        static object get_Length_6(ref object o)
        {
            return ((huqiang.Communication.KcpFileMission)o).Length;
        }

        static StackObject* CopyToStack_Length_6(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Communication.KcpFileMission)o).Length;
            __ret->ObjectType = ObjectTypes.Long;
            *(long*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_Length_6(ref object o, object v)
        {
            ((huqiang.Communication.KcpFileMission)o).Length = (System.Int64)v;
        }

        static StackObject* AssignFromStack_Length_6(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Int64 @Length = *(long*)&ptr_of_this_method->Value;
            ((huqiang.Communication.KcpFileMission)o).Length = @Length;
            return ptr_of_this_method;
        }

        static object get_TransferCount_7(ref object o)
        {
            return ((huqiang.Communication.KcpFileMission)o).TransferCount;
        }

        static StackObject* CopyToStack_TransferCount_7(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Communication.KcpFileMission)o).TransferCount;
            __ret->ObjectType = ObjectTypes.Long;
            *(long*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_TransferCount_7(ref object o, object v)
        {
            ((huqiang.Communication.KcpFileMission)o).TransferCount = (System.Int64)v;
        }

        static StackObject* AssignFromStack_TransferCount_7(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Int64 @TransferCount = *(long*)&ptr_of_this_method->Value;
            ((huqiang.Communication.KcpFileMission)o).TransferCount = @TransferCount;
            return ptr_of_this_method;
        }

        static object get_LastRecvTime_8(ref object o)
        {
            return ((huqiang.Communication.KcpFileMission)o).LastRecvTime;
        }

        static StackObject* CopyToStack_LastRecvTime_8(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Communication.KcpFileMission)o).LastRecvTime;
            __ret->ObjectType = ObjectTypes.Long;
            *(long*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_LastRecvTime_8(ref object o, object v)
        {
            ((huqiang.Communication.KcpFileMission)o).LastRecvTime = (System.Int64)v;
        }

        static StackObject* AssignFromStack_LastRecvTime_8(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Int64 @LastRecvTime = *(long*)&ptr_of_this_method->Value;
            ((huqiang.Communication.KcpFileMission)o).LastRecvTime = @LastRecvTime;
            return ptr_of_this_method;
        }

        static object get_LastChangeTime_9(ref object o)
        {
            return ((huqiang.Communication.KcpFileMission)o).LastChangeTime;
        }

        static StackObject* CopyToStack_LastChangeTime_9(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Communication.KcpFileMission)o).LastChangeTime;
            __ret->ObjectType = ObjectTypes.Long;
            *(long*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_LastChangeTime_9(ref object o, object v)
        {
            ((huqiang.Communication.KcpFileMission)o).LastChangeTime = (System.Int64)v;
        }

        static StackObject* AssignFromStack_LastChangeTime_9(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Int64 @LastChangeTime = *(long*)&ptr_of_this_method->Value;
            ((huqiang.Communication.KcpFileMission)o).LastChangeTime = @LastChangeTime;
            return ptr_of_this_method;
        }

        static object get_msg_10(ref object o)
        {
            return ((huqiang.Communication.KcpFileMission)o).msg;
        }

        static StackObject* CopyToStack_msg_10(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Communication.KcpFileMission)o).msg;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_msg_10(ref object o, object v)
        {
            ((huqiang.Communication.KcpFileMission)o).msg = (System.String)v;
        }

        static StackObject* AssignFromStack_msg_10(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.String @msg = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.Communication.KcpFileMission)o).msg = @msg;
            return ptr_of_this_method;
        }

        static object get_method_11(ref object o)
        {
            return ((huqiang.Communication.KcpFileMission)o).method;
        }

        static StackObject* CopyToStack_method_11(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Communication.KcpFileMission)o).method;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_method_11(ref object o, object v)
        {
            ((huqiang.Communication.KcpFileMission)o).method = (huqiang.Communication.KcpFileMission.MissionMethod)v;
        }

        static StackObject* AssignFromStack_method_11(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.Communication.KcpFileMission.MissionMethod @method = (huqiang.Communication.KcpFileMission.MissionMethod)typeof(huqiang.Communication.KcpFileMission.MissionMethod).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)20);
            ((huqiang.Communication.KcpFileMission)o).method = @method;
            return ptr_of_this_method;
        }

        static object get_shareFile_12(ref object o)
        {
            return ((huqiang.Communication.KcpFileMission)o).shareFile;
        }

        static StackObject* CopyToStack_shareFile_12(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Communication.KcpFileMission)o).shareFile;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_shareFile_12(ref object o, object v)
        {
            ((huqiang.Communication.KcpFileMission)o).shareFile = (huqiang.FileTool.ShareFile)v;
        }

        static StackObject* AssignFromStack_shareFile_12(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.FileTool.ShareFile @shareFile = (huqiang.FileTool.ShareFile)typeof(huqiang.FileTool.ShareFile).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.Communication.KcpFileMission)o).shareFile = @shareFile;
            return ptr_of_this_method;
        }



        static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new huqiang.Communication.KcpFileMission();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


    }
}
